<h:panelGroup layout="block"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:a4j="http://richfaces.org/a4j"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  styleClass="searchesSelector">

  <a4j:region id="#{widget.id}_region">
    <h:selectOneMenu
      value="#{searchUIActions.currentSelectedSavedSearchId}"
      id="#{widget.id}" styleClass="langSelect">
      <a4j:ajax execute="@this"
        listener="#{searchUIActions.refreshAndRewind}"
        render="#{widgetProperty_ajaxReRender}" />
      <f:selectItems value="#{searchUIActions.allSavedSearchesSelectItems}" />
    </h:selectOneMenu>
  </a4j:region>

  <h:outputScript target="#{pageJsTarget}">
    jQuery("[id$='#{widget.id}']").select2({width:"100%"});
  </h:outputScript>

</h:panelGroup>